package com.kefu.call.vo;

import java.util.Date;
import javax.validation.constraints.NotNull;
import com.kefu.common.context.KefuContext;
import com.kefu.common.vo.AbstractUpdateVo;
import com.kefu.call.model.CdrRghistory;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * @author CodeGenerator
 * @date 2022/07/26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@ApiModel(description = "计费_充值表")
public class CdrRghistoryUpdateVo extends AbstractUpdateVo<CdrRghistory,Long> {

    @NotNull
    @ApiModelProperty(value = "主键")
    private String oid;

    @ApiModelProperty(value = "客户ID")
    private String customeroid;
    
    @ApiModelProperty(value = "充值金额")
    private String rgmoney;
    @ApiModelProperty(value = "充值时间")
    private Date createtime;
    
    @ApiModelProperty(value = "操作人")
    private String rgpeopel;

    @Override
    public CdrRghistory convert() {
        CdrRghistory info = new CdrRghistory();
        info.setCompany(customeroid);
        info.setRgmoney(rgmoney);
        info.setCreatetime(createtime);
        info.setRgpeopel(rgpeopel);
        KefuContext context = KefuContext.getKefuContext();
        info.setOid(oid);
        return info;
	}
}